package jsyf.oa.service.system;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.dao.system.Role2RightDao;
import jsyf.oa.facade.system.Role2RightFacade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Lenovo on 2017/12/11.
 */
@Service
@Transactional(rollbackFor = Exception.class)
@com.alibaba.dubbo.config.annotation.Service(protocol = {"dubbo"})
public class Role2RightService implements Role2RightFacade {
    @Autowired
    private Role2RightDao dao;
    @Override
    public List<JSONObject> getByRoleId(String roleId) {
        return dao.getJSONListByCondition(" AND roleId = ? ",new Object[]{roleId});
    }
}
